package com.wasion.pwportable.protocol.analyzer.indicator;

import com.wasion.pwportable.protocol.analyzer.AbstractAnalyzer;

/**
 * 
 * @ClassName: ElectricField_RD_Analyzer
 * @Description: 15/16. 电场参数查询与设置
 * @author 高意
 * @date 2014-9-10 下午5:22:14
 * 
 */
public class ElectricField_RD_Analyzer extends AbstractAnalyzer {

	@Override
	public void dataAnalysis(String ackBS) {

		String data = ackBS.substring(DATABITSTART, DATABITSTART + 6);

		String efield16 = data.substring(0, 2);
		result.setElectricFieldValve(Integer.parseInt(efield16, 16));

		String dDuration16 = data.substring(2, 4);
		result.seteFieldDownTime(Integer.parseInt(dDuration16, 16));

		String dRate16 = data.substring(4, 6);
		result.seteFieldDownRate(Integer.parseInt(dRate16, 16));
	}
}
